<?php

namespace Blog\Form;

use Zend\Form\Form;

class PostForm extends Form {
	public function __construct($name = null, $options = array()) {
		parent::__construct ( $name, $options );
		$this->add ( array (
				'name' => 'post-fieldset',
				'type' => 'Blog\Form\PostFieldset',
				'options' => array(
						'use_as_base_fieldset' => true
				)				
		) );
		
		$this->add ( array (
				'type' => 'submit',
				'name' => 'submit',
				'attributes' => array (
						'value' => 'Insert new Post' 
				) 
		) );
	}
}